Computes the cumulative sum of an array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(:) |
The N-element array on which to operate. |
An N-element array containing the cumulative sum of each element in x (e.g. cumulative_sum(x) = [x(1), x(1) + x(2), ...]).